package xupt.se.ttms.idao;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import xupt.se.ttms.model.Movie;

public interface iMovieDAO {
	public boolean execInsert(Movie movie) throws Exception;
	public boolean execUpdate(Movie movie) throws Exception;
	public List<Movie> HandleMovieResultSet(ResultSet rs) throws SQLException;
	
	public ResultSet execQuery(String str) throws Exception;
	public ResultSet execQuery(int i)throws Exception ;
	public ResultSet execQueryAll()throws Exception;
	//主键是int类型，通过主键删除
	public boolean execDelete(int i) throws Exception ;
	
	public ResultSet execQueryHot(float score) throws Exception;
	public ResultSet execQueryNew(int date) throws Exception;
	public ResultSet execQueryRecommend(float score) throws Exception;
	public ResultSet execQueryFuzzy(String name) throws Exception;

}
